#!/usr/bin/env bash


#
# start 缩写 st
#
#f

declare -A map=(
  ["nacos"]="eplus-nacos/target/eplus-nacos.jar"
  ["gateway"]="eplus-gateway/target/eplus-gateway.jar"
  ["admin"]="eplus-admin/eplus-admin-biz/target/eplus-admin-biz.jar"
  ["building"]="eplus-modules/eplus-building/eplus-building-biz/target/eplus-building-biz.jar"
  ["house"]="eplus-modules/eplus-house/eplus-house-biz/target/eplus-house-biz.jar"
  ["customer"]="eplus-modules/eplus-customer/eplus-customer-biz/target/eplus-customer-biz.jar"
  ["oa"]="eplus-modules/eplus-oa/eplus-oa-biz/target/eplus-oa-biz.jar"
  ["file"]="eplus-modules/eplus-file/eplus-file-biz/target/eplus-file-biz.jar"
  ["nb"]="eplus-modules/eplus-nb/eplus-nb-biz/target/eplus-nb-biz.jar"
  ["syncData"]="eplus-modules/eplus-syncData/eplus-syncData-biz/target/eplus-syncData-biz.jar"
  ["jmp"]="eplus-modules/eplus-jmp/eplus-jmp-biz/target/eplus-jmp-biz.jar"
  ["college"]="eplus-modules/eplus-college/eplus-college-biz/target/eplus-college-biz.jar"
)
cd $SOURCE_CODE
file=${map[$1]}
nohup java -Xms100m -Xmx4096m -jar $file &> /home/work/logs/$1.log &
